<template>
    <div class="app-container">
        <div style="margin: 0 auto">
            <el-row :gutter="10">
                <el-col span="12" :offset="6">
                    <div style="text-align: center;margin-bottom: 30px">
                        个人工作详情信息
                    </div>
                    <el-form :model="personalWorkInfo" ref="personalWorkInfo">
                        <el-form-item label="所属主体:" prop="enterpriseName">
                            {{ personalWorkInfo.enterpriseName }}
                        </el-form-item>
                        <el-form-item label="职工名称:" prop="userName">
                            {{ personalWorkInfo.userName }}
                        </el-form-item>
                        <el-form-item label="工作简介:" prop="remark">
                            {{ personalWorkInfo.remark}}
                        </el-form-item>
                        <el-form-item label="工作内容:" prop="content">
                            {{ personalWorkInfo.content }}
                        </el-form-item>
                        <el-form-item label="工作开始时间:" prop="startTime">
                            {{ personalWorkInfo.startTime | dateFormat }}
                        </el-form-item>
                        <el-form-item label="工作结束时间:" prop="endTime">
                            {{ personalWorkInfo.endTime  | dateFormat}}
                        </el-form-item>
                    </el-form>
                </el-col>
            </el-row>
        </div>
    </div>
</template>

<script>
import {getInPersonalWorkVo} from "@/api/pesrsonWork";

export default {
    name: "info",
    data(){
        return{
            personalWorkInfo:{}
        }
    },
    created() {
        this.getInPersonalWorkVo()
    },
    methods:{
        getInPersonalWorkVo(){
            getInPersonalWorkVo({ucId:this.$route.query.ucId}).then(res=>{
                this.personalWorkInfo = res.data
                this.$notify.success({
                    title: '成功',
                    message: "获取个人工作信息成功"
                })
            }).catch(error=>{
                this.$notify.error({
                    title: '失败',
                    message: error.message
                })
            })
        }
    },
}
</script>

<style
        scoped>

</style>